<template>
  <!--展示工作簿-->
  <el-radio-group v-model="current.sheetName" size="small">
    <el-radio-button
      v-for="(item, index) in sheetNames"
      :key="index"
      :label="item"
    />
  </el-radio-group>
</template>

<script lang="ts">
  import { defineComponent } from 'vue'
  import {
    getMetaDataState
  } from '../../../../lib-excel/main'

  export default defineComponent({
    name: 'nf-xls-sheet',
    props: {
    },
    setup(props, context) {
      const state = getMetaDataState()

      const { sheetNames, current } = state
      
      return {
        sheetNames,
        current
      }
    }
  })
</script>